package com.zrwl.poscloud.core.restapi.admin.system;
//import com.zrwl.poscloud.core.annotion.AuthorityVerify.AuthorityVerify;
//import com.zrwl.poscloud.core.annotion.OperationLogger.OperationLogger;
//import com.zrwl.poscloud.commons.exception.ThrowableUtils;
//import com.zrwl.poscloud.commons.utils.ResultUtil;
//import com.zrwl.poscloud.commons.validator.group.Delete;
//import com.zrwl.poscloud.commons.validator.group.GetList;
//import com.zrwl.poscloud.commons.validator.group.Insert;
//import com.zrwl.poscloud.commons.validator.group.Update;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.validation.BindingResult;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.zrwl.poscloud.xo.service.AdminOperatorService;
//import com.zrwl.poscloud.xo.vo.AdminOperatorVO;
///**
// * 操作员绑定 controller api类
// *
// * @author 刘思童 AutoGenerate
// * @date 2022-08-08
// */
//@RestController
//@Api(value = "操作员绑定相关接口", tags = {"操作员绑定相关接口"})
//@RequestMapping("/adminOperator")
//@Slf4j
//public class AdminOperatorRestApi {
//    @Autowired
//    private AdminOperatorService adminOperatorService;
//    @AuthorityVerify
//    @ApiOperation(value = "获取操作员绑定列表", notes = "获取操作员绑定列表", response = String.class)
//    @PostMapping("/getList")
//    public String getList(@Validated({GetList.class}) @RequestBody AdminOperatorVO adminOperatorVO, BindingResult result) {
//        ThrowableUtils.checkParamArgument(result);
//        log.info("获取操作员绑定列表: {}", adminOperatorVO);
//        return ResultUtil.successWithData(adminOperatorService.getPageList(adminOperatorVO));
//    }
//
//    @AuthorityVerify
//    @ApiOperation(value = "获取操作员绑定列表", notes = "获取操作员绑定列表", response = String.class)
//    @PostMapping("/getAllList")
//    public String getAllList(@Validated({GetList.class}) @RequestBody AdminOperatorVO adminOperatorVO, BindingResult result) {
//        ThrowableUtils.checkParamArgument(result);
//        log.info("获取操作员绑定列表: {}", adminOperatorVO);
//        return ResultUtil.successWithData(adminOperatorService.getAllList(adminOperatorVO));
//    }
//
//    @AuthorityVerify
//    @OperationLogger(value = "新增操作员绑定")    @ApiOperation(value = "新增操作员绑定", notes = "新增操作员绑定", response = String.class)
//    @PostMapping("/add")
//    public String add(@Validated({Insert.class}) @RequestBody AdminOperatorVO adminOperatorVO, BindingResult result) {
//        ThrowableUtils.checkParamArgument(result);
//        log.info("新增操作员绑定: {}", adminOperatorVO);
//        return adminOperatorService.add(adminOperatorVO);
//    }
//
//    @AuthorityVerify
//    @OperationLogger(value = "修改操作员绑定")    @ApiOperation(value = "修改操作员绑定", notes = "修改操作员绑定", response = String.class)
//    @PostMapping("/edit")
//    public String edit(@Validated({Update.class}) @RequestBody AdminOperatorVO adminOperatorVO, BindingResult result) {
//        ThrowableUtils.checkParamArgument(result);
//        log.info("修改操作员绑定: {}", adminOperatorVO);
//        return adminOperatorService.edit(adminOperatorVO);
//    }
//
//    @AuthorityVerify
//    @OperationLogger(value = "删除操作员绑定")    @ApiOperation(value = "删除操作员绑定", notes = "删除操作员绑定", response = String.class)
//    @PostMapping("/delete")
//    public String delete(@Validated({Delete.class}) @RequestBody AdminOperatorVO adminOperatorVO, BindingResult result) {
//        ThrowableUtils.checkParamArgument(result);
//        log.info("删除操作员绑定: {}", adminOperatorVO);
//        return adminOperatorService.delete(adminOperatorVO);
//    }
//
//}
